<?php
define('core', 'system/');
require_once(core . 'core.php');

//echo $twig->render('index.twig.html', array('name' => 'Fabian'));
$dbh->ConnectDatabase();
$sql = 'SELECT * FROM data';
$res = $dbh->QueryAll($sql);

while ($row = mysql_fetch_assoc($res)) {
    $rows[] = $row;
}
//var_dump($rows);
echo $twig->render('block.html.twig', $rows);